<template>
  <t-dialog :header="dialogInfo.header" :visible.sync="dialogInfo.visible" :onClose="closeDialog"
    :closeOnOverlayClick="false" :confirmBtn="null">
        <t-form :colon="true">
                  <t-form-item label="计划名称" name="name">
                    {{ data.name }}
                  </t-form-item>
                  <t-form-item label="年度" name="year">
                    {{ data.year }}
                  </t-form-item>
                  <t-form-item label="负责人" name="leaderName">
                    {{ data.leaderName }}
                  </t-form-item>
                  <t-form-item label="计划内容" name="note">
                    {{ data.note }}
                  </t-form-item>
                  <t-form-item label="申报单位名称" name="name">
                    {{ data.name }}
                  </t-form-item>
<!--                  <t-form-item label="标准名称" name="localStandardName">-->
<!--                    {{ data.localStandardName}}-->
<!--                  </t-form-item>-->
        </t-form>
  </t-dialog>
</template>

<script>

import {getFiles} from "@/api/common";

export default {
  name: "plan-detail-dialog",
  dicts:["formulate_type","bzh_approve_type","approve_status","local_standard_status","standard_category"],
  components: {
  },
  props: {
    dialogInfo: {
      type: Object,
      default() {
        return {
          id: "",
          header: "",
          visible: true
        }
      }
    },
  },
  data() {
    return {
      data: {}
    }
  },

  async mounted() {
    await this.getDetail()
  },
  methods: {
    closeDialog() {
      this.$emit("closeBzhDialog", false);
      this.dialogInfo.visible = false
    },
    async getDetail(){
      await this.$api.bzh.iso.detailPlan(this.dialogInfo.id).then(response=>{
        this.data = response.data
      })
    },
  }
}
</script>

<style lang="less" scoped>
.card{
  margin-bottom: 14px;
}
.step-card{
  margin: 10px;
}
.content_style{
  font-size: 12pt;
  font-family: 宋体;
  line-height: 1.5;
}
</style>
